#!/usr/bin/env bash
cd /root/IdeaProjects/jvm-deep-learn
mvn package
cd target/classes
source /etc/profile
JAVA_OPTS="-verbose:gc -Xms20M -Xmx20M -Xmn10M -XX:+PrintGCDetails -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=15 -XX:+PrintTenuringDistribution  -XX:+UseSerialGC"
java $JAVA_OPTS ch03_gc.P5_MaxTenuringThreshold2